package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1、整合MyBatis-plus
 *      导入依赖
 *          <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.2.0</version>
 *         </dependency>
*       配置
 *       配置数据源
 *          -导入数据库驱动
 *          -在yml文件中配置数据源
 *       配置MyBatis-plus
 *          -使用注解@MapperScan("com.atguigu.gulimall.product.dao")开启扫描
 *          -在yml里面配置映射文件的路径
 *
 * @EnableDiscoveryClient注解开启服务注册与发现
 */
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
